package cn.edu.scau.cmi.pengzhijie.adapter;

import java.util.ArrayList;
import java.util.List;

import cn.edu.scau.cmi.pengzhijie.adapter.domain.Student;

public class SortUtil {
	public List<Integer> sortNumber(List<Integer> numberlist) {
		for(int i = 0; i < numberlist.size() - 1; i++) {
			for(int j = 0; j < numberlist.size() - 1 - i; j++) {
				if(numberlist.get(j) > numberlist.get(j+1)) {
					int temp = numberlist.get(j);
					numberlist.set(j, numberlist.get(j+1));
					numberlist.set(j+1, temp);
				}
			}
		}
		return numberlist;
	}
}
